<!--
 * @FilePath     : /study_code/layui/13-0-3.html
 * @Description  : table.render api 渲染
 * @Date         : 2025-04-07 17:15:21
 * @Author       : Fang YingGui
 * @LastEditors  : fangyinggui 18715384437@163.com
 * @LastEditTime : 2025-04-07 17:28:24
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <link rel="stylesheet" href="/layui/dist/css/layui.css" />
  </head>
  <body>
    <table id="demo" lay-filter="test"></table>

    <script src="/layui/dist/layui.js"></script>
    <script src="/layui/layui/table/common.js"></script>
    <script>
      layui.use('table', function () {
        var table = layui.table
        //第一个实例
        table.render({
          elem: '#demo',
          height: 312,
          data: tableData,
          page: true, //开启分页
          cols: cols,
        })
      })
    </script>
  </body>
</html>
